const router = require('koa-router')(),
  report=require('../models/report.js'),
  {con}=require('mysql2/promise'),
  log=console.log;


router.get('/report', async function (ctx, next) {
    const {userId,reason,describe,image} = (ctx.query);
    await report.report(reason,describe,image,userId);
    ctx.body="成功";
})  

module.exports = router;